const Mock = require("mockjs")
var list =  Mock.mock({
    "list|5": [{
        'url': '@image(100x100, @color)',
        "title": '@ctitle',
        'price|10-800': 0,
        num: 0,
        isCollect: false,
        id: '@id',
        checked: false,
    }]
}).list
module.exports = {
    devServer:{
        before(app){
            app.get("/list",(req,res)=>{
                res.send(list)
            })
        }
    }
}